<template>
  <div>
    <h3>{{name}}</h3>
    <h3>{{address}}</h3>
    <button @click="changeAddr">详细地址</button>
  </div>
</template>

<script>
export default {
  name: 'School',
  data() {
    return {
      name: 'DLUT',
      address: '大连'
    }
  },
  methods: {
    changeAddr() {
      this.address = '辽宁省大连市'
    }
  }
}
</script>

<style>
</style>